#ifndef __WATCARD_H__
#define __WATCARD_H__

#include <map>
#include "PRNG.h"
#include "printer.h"
using namespace std;


/*
	WATCard:
		1. constructor
		2. getter (fund, id)
		3. setter (adder, subtracter)
*/
extern PRNG prng;
class WATCard {	

	private:
		unsigned int id, fund;
	
	public:
		WATCard(unsigned int newid);
		void addFund(unsigned int amount);
		void subFund(unsigned int amount);
		unsigned int getFund();
		unsigned int getId(); 
};

class WATCardOffice {


		
	public:
		WATCardOffice( Printer &prt );
		WATCard *create( unsigned int id, unsigned int amount );
		void transfer( unsigned int id, unsigned int amount, WATCard &card );
    ~WATCardOffice();
 private:
	  // PRNG prng;
    Printer *prt;
};

#endif